<!doctype html>



  


<html class="theme-next pisces use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/vendors/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.useso.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/vendors/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="敏捷,效率,持续集成,TDD,重构,简单设计,设计原则,编码标准,用户故事,需求分析,设计模式,面向对象,DDD,DCI,DSL,Hexo,NexT" />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.0.1" />






<meta name="description">
<meta property="og:type" content="website">
<meta property="og:title" content="黄勇的技术博客">
<meta property="og:url" content="http://www.huangyong.me/page/2/index.html">
<meta property="og:site_name" content="黄勇的技术博客">
<meta property="og:description">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="黄勇的技术博客">
<meta name="twitter:description">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Pisces',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: 0,
      author: 'chinesequant'
    }
  };
</script>




  <title> 黄勇的技术博客 </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  


<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  ga('create', 'true', 'auto');
  ga('send', 'pageview');
</script>


  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?bbe1068ce8d9f53dce8df78d0bbb209a";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>








  
  
    
  

  <div class="container one-collumn sidebar-position-left 
   page-home 
 ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta ">
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">黄勇的技术博客</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">记录有趣的事情</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
  <section id="posts" class="posts-expand">
    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/12/10/XPS-Ubuntu-Kernel-4-4/" itemprop="url">
                  ubuntu 16.04 + linux kernel 4.4 完美解决 Dell new XPS 13 的内置无线网卡问题
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-12-10T08:47:30+08:00" content="2015年12月10日">
              2015年12月10日
            </time>
          </span>

          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/12/10/XPS-Ubuntu-Kernel-4-4/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/12/10/XPS-Ubuntu-Kernel-4-4/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>dell new XPS 13 内置的Dell Wireless 1560使用的是broadcom 4350解决方案，在ubuntu上一直是无驱动可用，最好的解决方案是换内置网卡。</p>
<p>几经试验，在ubuntu16.04(dialy build) 加上刚刚放出的linux kernel 4.4 TLS RC4 版本，该版本更新了大量驱动，并在性能上做了可观的提升。</p>
<figure class="highlight dns"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-rc4-wily/linux-headers-<span class="number">4.4.0-04</span>0400rc4-generic_<span class="number">4.4.0-04</span>0400rc<span class="number">4.20151206193</span>0_amd64.deb</span><br><span class="line"></span><br><span class="line">wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-rc4-wily/linux-headers-<span class="number">4.4.0-04</span>0400rc<span class="number">4_4.4.0</span>-040400rc<span class="number">4.20151206193</span>0_all.deb</span><br><span class="line"></span><br><span class="line">wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4-rc4-wily/linux-image-<span class="number">4.4.0-04</span>0400rc4-generic_<span class="number">4.4.0-04</span>0400rc<span class="number">4.20151206193</span>0_amd64.deb</span><br></pre></td></tr></table></figure>
<p>ubuntu 16.04 每日构建的镜像在此<a href="http://cdimage.ubuntu.com/daily-live/current/xenial-desktop-amd64.iso" target="_blank" rel="external">ubuntu16.04</a></p>
<p>2016.5.20:<br>目前已经完美驱动thundbolt3的显示。</p>

          
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/12/02/join/" itemprop="url">
                  python中合并字符串的效果
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-12-02T09:19:53+08:00" content="2015年12月02日">
              2015年12月02日
            </time>
          </span>

          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/12/02/join/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/12/02/join/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>基本上所有的动态语言中，都会有这样的技巧，例如lua中可以使用table缓存多行文本，最后合并。</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">In [<span class="number">8</span>]: s=<span class="string">"aaaaaaaaaaaaaaaaaaaa"</span></span><br><span class="line"></span><br><span class="line">In [<span class="number">9</span>]: l=[s <span class="keyword">for</span> i <span class="keyword">in</span> range(<span class="number">1000</span>)]</span><br><span class="line"></span><br><span class="line">In [<span class="number">10</span>]: <span class="function"><span class="keyword">def</span> <span class="title">concat</span><span class="params">()</span>:</span></span><br><span class="line">   ....:     sb=<span class="string">""</span></span><br><span class="line">   ....:     <span class="keyword">for</span> i <span class="keyword">in</span> l:</span><br><span class="line">   ....:         sb+=i</span><br><span class="line">   ....:     <span class="keyword">return</span> sb</span><br><span class="line">   ....: </span><br><span class="line"></span><br><span class="line">In [<span class="number">11</span>]: <span class="function"><span class="keyword">def</span> <span class="title">join</span><span class="params">()</span>:</span></span><br><span class="line">   ....:     <span class="keyword">return</span> <span class="string">""</span>.join(l)</span><br><span class="line">   ....: </span><br><span class="line"></span><br><span class="line">In [<span class="number">12</span>]: %timeit concat()</span><br><span class="line"><span class="number">10000</span> loops, best of <span class="number">3</span>: <span class="number">65.4</span> µs per loop</span><br><span class="line"></span><br><span class="line">In [<span class="number">13</span>]: %timeit join()</span><br><span class="line"><span class="number">100000</span> loops, best of <span class="number">3</span>: <span class="number">9.92</span> µs per loop</span><br></pre></td></tr></table></figure>

          
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/12/01/YaYaNLP/" itemprop="url">
                  YaYaNLP
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-12-01T16:54:43+08:00" content="2015年12月01日">
              2015年12月01日
            </time>
          </span>

          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/12/01/YaYaNLP/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/12/01/YaYaNLP/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <h2 id="YaYaNLP">YaYaNLP</h2><p>YaYaNLP是一个纯python编写的中文自然语言处理包，取名于“牙牙学语”。<br>YaYaNLP提供以下功能：</p>
<ul>
<li>中文分词</li>
<li>词性标注</li>
<li>命名实体识别<ul>
<li>人名识别</li>
<li>地名识别</li>
<li>组织机构识别</li>
</ul>
</li>
<li>简繁转换</li>
</ul>
<h2 id="项目">项目</h2><p>项目主页：<a href="https://github.com/Tony-Wang/YaYaNLP" target="_blank" rel="external">https://github.com/Tony-Wang/YaYaNLP</a><br>我的主页：<a href="http://www.huangyong.me">www.huangyong.me</a></p>
<h2 id="安装">安装</h2><h3 id="直接下载源码包，解压后运行">直接下载源码包，解压后运行</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">python setup.py install</span><br></pre></td></tr></table></figure>
<h3 id="下载字典与模型文件">下载字典与模型文件</h3><p>YaYaNLP使用了与HanLP兼容的字典数据，而编译后的字典数据保存的扩展名为.ya<br>可以直接从hanLP项目下载，<a href="http://pan.baidu.com/s/1gd1vo8j" target="_blank" rel="external">data-for-1.2.4.zip</a></p>
<h3 id="配置数据文件路径">配置数据文件路径</h3><p>在<strong>yaya/const.py</strong>修改自己的数据文件路径<br><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DATA_ROOT = <span class="string">"/your/data/path"</span></span><br></pre></td></tr></table></figure></p>
<h2 id="使用">使用</h2><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># -*- coding=utf-8 -*-</span></span><br><span class="line"><span class="keyword">from</span> yaya.seg <span class="keyword">import</span> segment</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">print_terms</span><span class="params">(terms)</span>:</span></span><br><span class="line">    <span class="keyword">for</span> i, v <span class="keyword">in</span> enumerate(terms):</span><br><span class="line">        <span class="keyword">print</span> v[<span class="number">0</span>], v[<span class="number">1</span>], v[<span class="number">2</span>]</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">main</span><span class="params">()</span>:</span></span><br><span class="line">    <span class="comment"># 识别人名</span></span><br><span class="line">    text = <span class="string">u"签约仪式前，秦光荣、李纪恒、仇和等一同会见了参加签约的企业家。"</span></span><br><span class="line">    terms = segment.seg(text)</span><br><span class="line">    print_terms(terms)</span><br><span class="line"></span><br><span class="line">    <span class="comment"># 识别地名</span></span><br><span class="line">    text = <span class="string">u"蓝翔给宁夏固原市彭阳县红河镇黑牛沟村捐赠了挖掘机"</span></span><br><span class="line">    terms = segment.seg(text)</span><br><span class="line">    print_terms(terms)</span><br><span class="line"></span><br><span class="line">    <span class="comment"># 简繁转换</span></span><br><span class="line">    text = <span class="string">u"以后等你当上皇后，就能买草莓庆祝了"</span></span><br><span class="line">    <span class="keyword">print</span> segment.simplified_to_traditional(text)</span><br><span class="line"></span><br><span class="line">    <span class="comment"># 繁简转换</span></span><br><span class="line">    text = <span class="string">u"用筆記簿型電腦寫程式HelloWorld"</span></span><br><span class="line">    <span class="keyword">print</span> segment.traditional_to_simplified(text)</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span> __name__ == <span class="string">'__main__'</span>:</span><br><span class="line">    main()</span><br></pre></td></tr></table></figure>
<h2 id="感谢">感谢</h2><p>本项目参考了<a href="https://github.com/hankcs/HanLP/" target="_blank" rel="external">hanck/HanLP</a>项目实现原理并使用了该项目的字典和模型文件。</p>

          
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/09/23/DAT-PYPY/" itemprop="url">
                  python实现的DAT字典多匹配效率试验
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">发表于</span>
            <time itemprop="dateCreated" datetime="2015-09-23T09:51:13+08:00" content="2015年09月23日">
              2015年09月23日
            </time>
          </span>

          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/09/23/DAT-PYPY/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/09/23/DAT-PYPY/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          
          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>从HanLP看到了<a href="https://github.com/komiya-atsushi/darts-java" target="_blank" rel="external">darts-java</a>,话说小日本除了苍老师还贡献了这样精巧的代码。<br>用python实现了双数组trie分词,一直担心效率问题。看到hancs的<a href="http://www.hankcs.com/program/algorithm/double-array-trie-vs-aho-corasick-double-array-trie.html" target="_blank" rel="external">《DoubleArrayTrie和AhoCorasickDoubleArrayTrie的实用性对比》</a>这篇，很有兴趣，立刻依样画葫芦，试验了一把。<br><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># -*- coding:utf-8 -*-</span></span><br><span class="line"><span class="keyword">import</span> codecs</span><br><span class="line"><span class="keyword">import</span> time</span><br><span class="line"><span class="keyword">from</span> yaya.collection.dict <span class="keyword">import</span> DoubleArrayTrie</span><br><span class="line">__author__ = <span class="string">'tony'</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">main</span><span class="params">()</span>:</span></span><br><span class="line">    f = codecs.open(<span class="string">"./data/我的团长我的团.txt"</span>, <span class="string">'r'</span>, <span class="string">"utf-8"</span>)</span><br><span class="line">    text = f.read()</span><br><span class="line">    search = DoubleArrayTrie.searcher(text)</span><br><span class="line">    i = <span class="number">0</span></span><br><span class="line">    start = time.time()</span><br><span class="line">    <span class="keyword">while</span> search.next():</span><br><span class="line">        i += <span class="number">1</span></span><br><span class="line">        <span class="keyword">pass</span></span><br><span class="line"></span><br><span class="line">    <span class="keyword">print</span> <span class="string">"分词时间: %s"</span> % (time.time() - start)</span><br><span class="line">    <span class="keyword">print</span> <span class="string">"分词个数: %s"</span> % i</span><br><span class="line">    <span class="keyword">print</span> <span class="string">"词典大小: %s"</span> % search.trie.keySize</span><br><span class="line">    <span class="keyword">print</span> <span class="string">"文本大小: %s"</span> % len(text)</span><br><span class="line"></span><br><span class="line"><span class="keyword">if</span> __name__ == <span class="string">'__main__'</span>:</span><br><span class="line">    main()</span><br></pre></td></tr></table></figure></p>
<p>ubuntu 14.04 64位<br>python 2.7.4<br>Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz<br>12G内存</p>
<p>测试结果不出所料地让我崩溃,HanLP的实验都是毫秒级，都不超过50毫秒。</p>
<figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">/usr/bin/python /home/tony/MyProject/YaYaNLP/test/DemoDATMulitMatch.py</span><br><span class="line">分词时间: <span class="number">1.75682616234</span></span><br><span class="line">分词个数: <span class="number">945685</span></span><br><span class="line">词典大小: <span class="number">153117</span></span><br><span class="line">文本大小: <span class="number">815841</span></span><br><span class="line"></span><br><span class="line">Process finished with <span class="built_in">exit</span> code <span class="number">0</span></span><br></pre></td></tr></table></figure>
<p>换成pypy试试，却给了我信心。</p>
<p>pypy 2.2.1</p>
<figure class="highlight crystal"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line">/usr/<span class="class"><span class="keyword">lib</span>/<span class="title">pypy</span>/<span class="title">bin</span>/<span class="title">pypy</span>-<span class="title">c</span> /<span class="title">home</span>/<span class="title">tony</span>/<span class="title">MyProject</span>/<span class="title">YaYaNLP</span>/<span class="title">test</span>/<span class="title">DemoDATMulitMatch</span>.<span class="title">py</span></span></span><br><span class="line">分词时间: <span class="number">0.190576076508</span></span><br><span class="line">分词个数: <span class="number">945685</span></span><br><span class="line">词典大小: <span class="number">153117</span></span><br><span class="line">文本大小: <span class="number">815841</span></span><br><span class="line"></span><br><span class="line"><span class="constant">Process</span> finished <span class="keyword">with</span> exit code <span class="number">0</span></span><br></pre></td></tr></table></figure>
<p>吼吼，效率提升很多。</p>

          
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
  </section>

  
  <nav class="pagination">
    <a class="extend prev" rel="prev" href="/"><i class="fa fa-angle-left"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span>
  </nav>



          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      

      <section class="site-overview sidebar-panel  sidebar-panel-active ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="http://ww4.sinaimg.cn/mw690/7ecfc119jw8et76rgrm1kj20k00k00vi.jpg"
               alt="tony" />
          <p class="site-author-name" itemprop="name">tony</p>
          <p class="site-description motion-element" itemprop="description"></p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">14</span>
              <span class="site-state-item-name">日志</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              
                <span class="site-state-item-count">1</span>
                <span class="site-state-item-name">分类</span>
              
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">35</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/Tony-Wang" target="_blank" title="github">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  github
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://weibo.com/u/2127544601" target="_blank" title="微博">
                  
                    <i class="fa fa-fw fa-weibo"></i>
                  
                  微博
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.zhihu.com/people/huangyong.me" target="_blank" title="知乎">
                  
                    <i class="fa fa-fw fa-paper-plane"></i>
                  
                  知乎
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="mailto:tony@huangyong.me" target="_blank" title="mail">
                  
                    <i class="fa fa-fw fa-envelope-o"></i>
                  
                  mail
                </a>
              </span>
            
          
        </div>

        
        

        
        

      </section>

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">tony</span>
</div>

<div class="powered-by">
  由 <a class="theme-link" href="http://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Pisces
  </a>
</div>

        

        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/vendors/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/vendors/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/vendors/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/vendors/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/vendors/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/vendors/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.1"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.0.1"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.0.1"></script>



  

  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.1"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"chinesequant"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
      
      <script src="/vendors/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>
      <script src="/js/src/hook-duoshuo.js"></script>
    
  






  
  
  

  

  
<script type="text/javascript" async src="//push.zhanzhang.baidu.com/push.js">
</script>


</body>
</html>
